package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.system.domain.TLandHouseAssets;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TLandHouseAssetsMapper;
import com.ruoyi.system.service.ITLandHouseAssetsService;
import com.ruoyi.common.core.text.Convert;

/**
 * assetsService业务层处理
 * 
 * @author ruoyi
 * @date 2024-03-15
 */
@Service
public class TLandHouseAssetsServiceImpl implements ITLandHouseAssetsService 
{
    @Autowired
    private TLandHouseAssetsMapper tLandHouseAssetsMapper;

    /**
     * 查询assets
     * 
     * @param id assets主键
     * @return assets
     */
    @Override
    public TLandHouseAssets selectTLandHouseAssetsById(Long id)
    {
        return tLandHouseAssetsMapper.selectTLandHouseAssetsById(id);
    }

    /**
     * 查询assets列表
     * 
     * @param tLandHouseAssets assets
     * @return assets
     */
    @Override
    public List<TLandHouseAssets> selectTLandHouseAssetsList(TLandHouseAssets tLandHouseAssets)
    {
        return tLandHouseAssetsMapper.selectTLandHouseAssetsList(tLandHouseAssets);
    }

    /**
     * 新增assets
     * 
     * @param tLandHouseAssets assets
     * @return 结果
     */
    @Override
    public int insertTLandHouseAssets(TLandHouseAssets tLandHouseAssets)
    {
        tLandHouseAssets.setCreateTime(DateUtils.getNowDate());
        return tLandHouseAssetsMapper.insertTLandHouseAssets(tLandHouseAssets);
    }

    /**
     * 修改assets
     * 
     * @param tLandHouseAssets assets
     * @return 结果
     */
    @Override
    public int updateTLandHouseAssets(TLandHouseAssets tLandHouseAssets)
    {
        tLandHouseAssets.setUpdateTime(DateUtils.getNowDate());
        return tLandHouseAssetsMapper.updateTLandHouseAssets(tLandHouseAssets);
    }

    /**
     * 批量删除assets
     * 
     * @param ids 需要删除的assets主键
     * @return 结果
     */
    @Override
    public int deleteTLandHouseAssetsByIds(String ids)
    {
        return tLandHouseAssetsMapper.deleteTLandHouseAssetsByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除assets信息
     * 
     * @param id assets主键
     * @return 结果
     */
    @Override
    public int deleteTLandHouseAssetsById(Long id)
    {
        return tLandHouseAssetsMapper.deleteTLandHouseAssetsById(id);
    }

    @Override
    public List<TLandHouseAssets> selectTLandAssetsList(TLandHouseAssets tLandHouseAssets) {

        return tLandHouseAssetsMapper.selectTLandAssetsList(tLandHouseAssets);
    }

    @Override
    public List<TLandHouseAssets> selectTHouseAssetsList(TLandHouseAssets tLandHouseAssets) {
        return tLandHouseAssetsMapper.selectTHouseAssetsList(tLandHouseAssets);
    }

    @Override
    public List<TLandHouseAssets> selectTLandAssetsListByIds(String ids) {
        return tLandHouseAssetsMapper.selectTLandAssetsListByIds(Convert.toStrArray(ids));
    }

    @Override
    public List<TLandHouseAssets> selectTHouseAssetsListByIds(String ids) {
        return tLandHouseAssetsMapper.selectTHouseAssetsListByIds(Convert.toStrArray(ids));
    }
}
